module.exports = (sequelize, DataTypes) => sequelize.define(
    'order_goods',
    {
        id: {
            type: DataTypes.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        order_id: {
            type: DataTypes.INTEGER,
            allowNUll: false
        },
        goods_id: {
            type: DataTypes.INTEGER,
            allowNUll: false
        },
        single_price: {
            type: DataTypes.FLOAT,
            allowNUll: false
        },
        count: {
            type: DataTypes.INTEGER,
            allowNUll: false
        }
    },
    {
        tableName: 'order_goods'
    }
)